<?php

namespace falcon5\inc\WPProviders;

use falcon5\inc\Base\Common;
use falcon5\inc\Base\ServiceProviderInterface;
use falcon5\inc\Pages\PageSlugConstants;

class SettingsLinks extends Common implements ServiceProviderInterface
{

    public function register()
    {
        add_filter( "plugin_action_links_$this->plugin", array( $this, 'settings_link' ) );
    }


    public function settings_link( $links )
    {
        $settings_link = '<a href="admin.php?page=' . PageSlugConstants::SETTINGS_SLUG . '">Settings</a>';
        array_push( $links, $settings_link );
        return $links;
    }
}